NestedScrollingChild2

This interface should be implemented by View subclasses that wish to support dispatching nested scrolling operations to a cooperating parent ViewGroup.

Classes implementing this interface should create a final instance of a NestedScrollingChildHelper as a field and delegate any View methods to the NestedScrollingChildHelper methods of the same signature.

Views invoking nested scrolling functionality should always do so from the relevant ViewCompat, ViewGroupCompat or ViewParentCompat compatibility shim static methods. This ensures interoperability with nested scrolling views on all versions of Android.

Inheritors

Functions

Link copied to clipboard
abstract fun dispatchNestedPreScroll(dx: Int, dy: Int, @Nullable consumed: Array<Int>, @Nullable offsetInWindow: Array<Int>, type: Int): Boolean
Dispatch one step of a nested scroll in progress before this view consumes any portion of it.
Link copied to clipboard
abstract fun dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, @Nullable offsetInWindow: Array<Int>, type: Int): Boolean
Dispatch one step of a nested scroll in progress.
Link copied to clipboard
abstract fun hasNestedScrollingParent(type: Int): Boolean
Returns true if this view has a nested scrolling parent for the given input type.
Link copied to clipboard
abstract fun startNestedScroll(axes: Int, type: Int): Boolean
Begin a nestable scroll operation along the given axes, for the given input type.
Link copied to clipboard
abstract fun stopNestedScroll(type: Int)
Stop a nested scroll in progress for the given input type.